import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/home',
    name: 'Home',
    component: Home
  },
  {
    path: '/about',
    name: 'About',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  },
  {
    path: '/logistics',
    name: 'Logistics',
    component: () => import(/* webpackChunkName: "logistics" */ '../views/Logistics.vue')
  },
  {
    path: '/comment',
    name: 'Comment',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "comment" */ '../views/Comment.vue')
  },
  {
    path: '/delivey2',
    name: 'Delivey2',
    component: () => import(/* webpackChunkName: "delivey2" */ '../components/Delivey2.vue')
  },
  {
    path: '/newcenter',
    name: 'NewCenter',
    component: () => import(/* webpackChunkName: "newcenter" */ '../views/NewCenter.vue')
  },
  {
    path: '/messagedetail',
    name: 'MessageDetail',
    component: () => import(/* webpackChunkName: "messagedetail" */ '../views/MessageDetail.vue')
  },
  {
    path: '/customer',
    name: 'Customer',
    component: () => import(/* webpackChunkName: "customer" */ '../views/Customer.vue')
  },
  {
    path: '/newcustomer',
    name: 'NewCustomer',
    component: () => import(/* webpackChunkName: "newcustomer" */ '../views/NewCustomer.vue')
  },
  {
    path: '/mycuents',
    name: 'MyCuents',
    component: () => import(/* webpackChunkName: "newcustomer" */'../views/MyCuents.vue')
  },
  {
    path: '/newcuents',
    name: 'NewCuents',
    component: () => import(/* webpackChunkName: "newcustomer" */'../views/NewCuents.vue')
  },
  {
    path: '/cuentersview',
    name: 'CuentersView',
    component: () => import(/* webpackChunkName: "cuentersview" */'../views/CuentersView.vue'),
  },
  {
    path: '/customerdatas',
    name: 'CustomerDatas',
    component: () => import(/* webpackChunkName: "customerdatas" */'../views/CustomerDatas.vue')
  },
  {
    path: '/compile',
    name: 'Compile',
    component: () => import(/* webpackChunkName: "compile" */'../views/Compile.vue')
  },
  {
    path: '/personalcenter',
    name: 'PersonalCenter',
    component: () => import(/* webpackChunkName: "personalcenter" */'../views/PersonalCenter.vue')
  },
  {
    path: '/personalmessage',
    name: 'PersonalMessage',
    component: () => import('../views/PersonalMessage.vue')
  },
  {
    path: '/versioninformation',
    name: 'VersionInformation',
    component: () => import('../views/VersionInformation.vue')
  },
  {
    path: '/expresswaybill',
    name: 'ExpressWaybill',
    component: () => import('../views/ExpressWaybill.vue')
  },
  {
    path: '/expressorderevaluation',
    name: 'ExpressOrderEvaluation',
    component: () => import('../views/ExpressOrderEvaluation.vue')
  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
